//
//  AppDelegate.swift
//  JAWeiBo
//
//  Created by Arvin on 17/4/2.
//  Copyright © 2017年 Arvin. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        window = UIWindow(frame: UIScreen.main.bounds)
        
//        window?.backgroundColor = UIColor.white
        
        let controller = JAMainController()
        
        //当访问一个可选对象的方法和属性时,可以直接使用?, 最终会返回一个可选值
        window?.rootViewController = controller
        
        window?.makeKeyAndVisible()

        return true
    }

    
}

